
import React, { Component } from 'react';
import { StyleSheet, ScrollView, View, Text } from 'react-native';

const styles = StyleSheet.create({
    containerScrollView: {
        marginTop: 64,
        backgroundColor: '#F5FCFF'
    },
    container: {
        flex: 1,
        justifyContent: 'flex-start',
        alignItems: 'center',
        borderColor:'#cccccc',
        borderTopWidth:1
    },
    text: {
        fontSize: 16,
        color: 'blue',
        textAlign: 'center',
        padding: 10,
    },

});

class MainScene extends Component {
    static propTypes = {
        title: React.PropTypes.string,
    };
    static defaultProps = {
        title: '互联网金融',
    };


    componentWillMount(){

        this.immediatelyResetRouteStack();
    }

    immediatelyResetRouteStack(){
        if (this.props.navigator) {


        }


    }

    render() {
        return (
            <ScrollView style={styles.containerScrollView} >
                <Text style={styles.text} >Hi! My name is {this.props.title}.</Text>
            </ScrollView>
        )
    }
}

export default MainScene;
